package com.fqgj.xjd.user.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.xjd.user.dao.UserAuthAdvanceAadhaarDao;
import com.fqgj.xjd.user.entity.UserAuthAdvanceAadhaarEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
 * User: Karl
 * Date: 2019-10-17
 * Time: 15:58:12.475
 */

@Repository
public class UserAuthAdvanceAadhaarDaoImpl extends AbstractBaseMapper<UserAuthAdvanceAadhaarEntity> implements UserAuthAdvanceAadhaarDao {

    @Override
    public UserAuthAdvanceAadhaarEntity selectLastUserAuthAdvanceAadhaar(String userCode) {
        Map<String, Object> params = new HashMap<>();
        params.put("userCode", userCode);
        return getSqlSession().selectOne(getStatement("selectLastUserAuthAdvanceAadhaar"), params);
    }
}
